package com.project.erp.model.crm.customer;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.project.erp.model.IdEntity;

/**
 * 
 * COPYRIGHT (C) 2013 BY XXX公司
 * 
 * 功能模块名：客户关系-客户信息管理
 * 
 * 功能描述：客户信息model类
 * 
 * @author LiJiaGuo
 * 
 * @version 1.0
 * 
 * @created 2013-12-7 上午10:45:35
 */
@Entity
@Table(name = "TBL_CRM_CUSTOMER")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class CrmCustomer extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8526694508166239468L;

	private String cusNameEn; // 客户编号
	private String cusNameZh; // 客户名称
	private String address; // 地址
	private String telFax; // 电话传真
	private String email; // 邮箱
	private String description; //备注
	private String createUser; // 创建用户
	private Date createTime; // 创建时间

	@Column(columnDefinition="varchar(30)",nullable=false,unique=true)
	public String getCusNameEn() {
		return cusNameEn;
	}

	public void setCusNameEn(String cusNameEn) {
		this.cusNameEn = cusNameEn;
	}

	@Column(columnDefinition="varchar(300)",nullable=false)
	public String getCusNameZh() {
		return cusNameZh;
	}

	public void setCusNameZh(String cusNameZh) {
		this.cusNameZh = cusNameZh;
	}

	@Column(columnDefinition="varchar(300)")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(columnDefinition="varchar(100)")
	public String getTelFax() {
		return telFax;
	}

	public void setTelFax(String telFax) {
		this.telFax = telFax;
	}

	@Column(columnDefinition="varchar(100)")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(columnDefinition="varchar(300)")
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}

	@Column(columnDefinition="varchar(30)")
	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
